import java.util.Scanner;

    public class Training06 {
        public static void main(String[] args) {
            Scanner in=new Scanner(System.in);
            System.out.println("请输入行数");
            int a = in.nextInt();
            for (int i=1;i<=a;i++){
                for (int j=1;j<=a-i;j++){
                    System.out.print(" ");
                }
                for (int m = 1;m <=2*i-1;m++){
                    System.out.print("*");
                }
                System.out.println();
            }
        }
    }